console.log('---------1111111',import.meta.env, )
import store from "./state.ts";
const env = import.meta.env;
const microApps = [
    {
      name: 'iot',
      entry: env.MODE == 'development' ? '//localhost:5101/' :  env.BASE_URL,
      activeRule: '/iot',     
    }, 
    {
      name: 'aca',
      entry: env.MODE == 'development' ? '//localhost:5102/' :  env.BASE_URL,
      activeRule: '/aca',   
    }, 
 
  ]

  const apps = microApps.map((item) => {
    return {
      ...item,
      container: "#mvContainer", // 子应用挂载的div
      props: {
        routerBase: item.activeRule, // 下发基础路由
        getGlobalState: store.getGlobalState, // 下发getGlobalState方法
      },
    };
  });

  export default apps;
  